<?php

/**
 * 服务端js脚本控制
 * @author user
 *
 */
class ServerController extends SCController {
	
	public function __construct() {
		parent::__construct();
	}
	
	public function index() {
		SCRedirect::to('server/side');
	}
	
	public function side() {
		$userModel = new UserModel();
		if(false != ($user_id = $userModel->checkLogin())) {
			$user_info = $userModel->getBasicInfo($user_id);
		} else {
			$user_info = false;
		}
		
		require $this->view->load();
	}
}